﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Collections;

namespace Basics
{
    static class MapLoader
    {
        static public Map LoadMap(string mapFile, uint tileSize)
        {
            Map map = new Map(tileSize);
            int rowcount = 0;
            foreach (string line in File.ReadLines(mapFile))
            {
                
                if (line.TrimStart().Substring(0, 2) == "//")
                    continue;
                else
                {
                    rowcount++;
                    int colcount = 0;
                    foreach (char tile in line)
                    {
                        colcount++;
                        
                    }
                }
            }

            return map;
        }
    }
}
